package structural.adapter.object;

/**
 * @ClassName: SanDiskSD
 * @Description: 闪迪相机SD卡
 * @Author: liu-hao
 * @Date: 2023-04-11 11:28
 * @Version: 1.0
 **/
public class SanDiskSD implements SDCard {

    String sdData = "";

    public SanDiskSD(String sdData) {
        this.sdData = sdData;
    }

    @Override
    public String readSD() {
        System.out.println("SDCard read data: " + this.sdData);
        return this.sdData;
    }

    @Override
    public void writeSD(String data) {
        System.out.println("SDCard write data :" + data);
        this.sdData = data;
    }
}
